package cn.tedu.mybatis.mapper;

import cn.tedu.mybatis.Admin;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdminMapper {



    int insert(Admin admin);

    int deleteById(Long id);

    int updatePasswordById(@Param("id") Long id, @Param("password")String password);

    int count();

    Admin selectById(Long id);

    List<Admin> list();

    int deleteByIds(List<Long> id);

    List<Admin> listPage(@Param("offset") Integer offset,@Param("size") Integer size);

    Admin selectByUsername(String username);


}
